package ai.people.netmon.framework.exception.enums;

/**
 * WebSocket异常枚举
 *
 * @author liguannan
 * @date 2022/7/9 10:43
 */
public enum WebSocketExceptionEnum implements ExceptionEnum {

    ILLEGAL_TAG(false, 920000, "tag类型错误！"),
    ;

    /**
     * 状态
     */
    final boolean status;
    /**
     * 代码
     */
    final int code;
    /**
     * 消息
     */
    final String message;

    WebSocketExceptionEnum(boolean status, int code, String message) {
        this.status = status;
        this.code = code;
        this.message = message;
    }


    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public boolean getStatus() {
        return this.status;
    }
}
